<!--
/**************************************************
* @ balancemanagebargain.jsp
*
* Copyright   2006 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/04/27, Jenny Li
*  1) first release
/**************************************************
-->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>合同内容</title>
		<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="<%=root%>/css/caigouxitong.css"" type=text/css rel=stylesheet>		
		<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
		<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
		<%
			GSBargainInfoVO tVO = (GSBargainInfoVO)request.getAttribute("bargaindetail");
		%>
			<script>
			/*/var counter;
			function process(val){
				if(val == 'Q'){
					orderqueryform.action = "emergencyorder1.html";
    				orderqueryform.submit();			
				}else if(val == 'T'){
				}

			}

			function setEnable()
			{
				if (orderqueryform.Radio2.checked)
				{
					document.all["attach"].disabled = false;
					orderqueryform.Text1.disabled = false;
				}
				else
				{
					document.all["attach"].disabled = true;
					orderqueryform.Text1.disabled = true;
					orderqueryform.Text1.value  = "";
				}
			}//*/
			</script>
	</head>
	<body BGCOLOR="#f2f2f2" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<!--onload="setEnable();">-->
		<form name="orderqueryform" method="post">
			<p><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT><br>
			</p>
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td height="20">
						<table width="100%" border="0" cellspacing="0" cellpadding="1">
							<tr height="20">
								<td height="30" width="758" class="mtxt_black">合同信息
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="bg_line" height="2"></td>
				</tr>
			</table>
			<br>
			<table class="bg_table" id="Table1" cellspacing="1" cellpadding="0" style="PADDING-RIGHT:5px; PADDING-LEFT:5px"
				width="98%" align="center" border="0">
				<TR height="20">
					<TD class="bg_column" align="center" colspan="4"><b>主体信息</b></TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">序号</TD>
					<TD class="bg_row_odd" width="35%"><%=tVO.bgnId%>
					</TD>
					<TD class="bg_column" align="center" width="15%">合同类型</TD>
					<TD align="left" class="bg_row_odd" width="35%">
						主合同 
						<!--副合同&nbsp;&nbsp;&nbsp;&nbsp;
						主合同编号：0910-->
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center">客户类型</TD>
					<TD align="left" class="bg_row_odd">
						<%=GSBaseManager.getBalanceDeptTypeName(tVO.custType)%>
					</TD>
					<TD class="bg_column" align="center" width="15%">客户名称</TD>
					<TD class="bg_row_odd" align="left" width="35%">
						<%=tVO.custName %>
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center">合同（协议）内容</TD>
					<TD left="right" class="bg_row_odd" colspan="3">
						<%=tVO.bgnCont%>
					</TD>
				</TR>
				<tr height="20">
					<TD class="bg_column" align="center">页数</TD>
					<TD align="left" class="bg_row_odd">
						<%=tVO.pageCount==null || tVO.pageCount.trim().equals("")? "0":tVO.pageCount%>页
					</TD>
					<TD class="bg_column" align="center">附件数</TD>
					<TD align="left" class="bg_row_odd">
						<%=tVO.fileCount%>
					</TD>
				</tr>
				<tr height="20">
					<TD class="bg_column" align="center">相关文件</TD>
					<TD class="bg_row_odd" colspan="3">
						<a href="" target="_blank"><a href="<%=response.encodeURL(root + "/A180217.do?bgnId="+tVO.bgnId +"&bgnContName="+tVO.fileName)%>"><%=tVO.fileName%></a></a>
					</TD>
				</tr>
				<TR height="20">
					<TD class="bg_column" align="center">部门</TD>
					<td class="bg_row_odd"><%=tVO.deptId%></td>
					<TD class="bg_column" align="center">签约人</TD>
					<td class="bg_row_odd"><%=tVO.signPerson %></td>
				</TR>
				<tr height="20">
					<TD class="bg_column" align="center">签约日期</TD>
					<TD align="left" class="bg_row_odd">
						<!--<input id="Text27" name='deliverdate1' readonly onfocus='setday(this)'>-->
						<%=tVO.signDate%>
					</TD>
					<TD class="bg_column" align="center">终止日期</TD>
					<TD align="left" class="bg_row_odd">
						<!--<input id="Text4" name='deliverdate2' readonly onfocus='setday(this)'>-->
						<%=tVO.endDate%>
					</TD>
				</tr>
				<TR height="20">
					<TD class="bg_column" align="center">期限</TD>
					<td class="bg_row_odd"><!--<INPUT type="text" ID="Text8" NAME="Text3">--><%=tVO.term%></td>
					<TD class="bg_column" align="center">卷号</TD>
					<td class="bg_row_odd"><!--<INPUT type="text" ID="Text9" NAME="Text3">--> <%=tVO.vol%></td>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center">编号</TD>
					<td class="bg_row_odd"><!--<INPUT type="text" ID="Text10" NAME="Text3">--> <%=tVO.mainSerial%></td>
					<TD class="bg_column" align="center">归卷日期</TD>
					<td class="bg_row_odd"><!--<input id="Text11" name='deliverdate3' readonly onfocus='setday(this)'>--> 
						<%=tVO.returnDate%></td>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center">收/付款周期</TD>
					<TD left="right" class="bg_row_odd" colspan="3">
						<!--<TEXTAREA rows="5" cols="80" ID="Textarea2" NAME="Textarea1" style="WIDTH:98%"></TEXTAREA>-->
						<%=tVO.week%>天
					</TD>
				</TR>				
				<TR height="20">
					<TD class="bg_column" align="center">备注</TD>
					<TD left="right" class="bg_row_odd" colspan="3">
						<!--<TEXTAREA rows="5" cols="80" ID="Textarea2" NAME="Textarea1" style="WIDTH:98%"></TEXTAREA>-->
						<%=tVO.notes%>
					</TD>
				</TR>
			</table>
			<br>
			<%
				if(tVO.chargeList != null && tVO.chargeList.size() > 0){
			%>
			<table class="bg_table" id="Table1" cellspacing="1" cellpadding="0" style="PADDING-RIGHT:5px; PADDING-LEFT:5px"
				width="98%" align="center" border="0">
				<TR height="20">
					<TD class="bg_column" align="center" colspan="2"><b>费用信息</b></TD>
				</TR>
				<tr>
					<TD class="bg_column" align="center"><b>类型</b></TD>
					<TD class="bg_column" align="center"><b>内容</b></TD>
				</tr>						
				<%
					for(int i=0; i<tVO.chargeList.size();i++){
						GSBargainChargeBean tChargeBean = (GSBargainChargeBean)tVO.chargeList.get(i);
				%>
				<tr>
					<TD class="bg_row_odd" align="center" width="50%"><b><%=tChargeBean.getGs_bgc_type() %></b></TD>
					<TD class="bg_row_odd" align="center" width="50%"><b><%=tChargeBean.getGs_bgc_content()%></b></TD>
				</tr>						
				<%		
					}
				%>
			</table>
			<%
				}
			%>
		</form>
		<p align="center">
			<INPUT type="button" value="关闭" class="kuang" NAME="Button1" onclick="self.close();">
		</p>

	</body>
</html>